import Vue from 'vue'
import App from './App.vue'
import router from './router'
import TypeNav from './components/TypeNav'
import Pagenation from './components/Pagenation'
import { pagination } from 'element-ui';
Vue.component(pagination.name, pagination);

Vue.config.productionTip = false
Vue.component(TypeNav.name, TypeNav)
Vue.component(Pagenation.name, Pagenation)


import { reqfree } from '@/api/index'
import store from '@/store'
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
import VueLazyload from 'vue-lazyload'
import loadimage from '@/assets/logo.png'
Vue.use(VueLazyload, {
    loading: loadimage,
})

reqfree();
new Vue({
    render: h => h(App),
    router,
    store,
    beforeCreate() {
        Vue.prototype.$bus = this
    },
}).$mount('#app')